import requestMeeting from '@/plugins/axios'
import { FetchMeetingSpaceInfo } from './interface'
import { transMeetingInfo } from './translator'

export type { IMeetingInfo } from './interface'
export {
	fetchGetCodeAddress,
	fetchGetMeetingFiles,
	fetchDeleteMeetingFiles,
	fetchGetMeetingSpaceShareInfo,
} from './docs'
export { ItemStatus } from './docs/interface'
export type { FetchMeetingDoc, IMeetingDocItem } from './docs/interface'
export { fetchGetKisRequestInfo } from './kis'
export { fetchGetQuality, fetchGetJdbStatus } from './quality'
export type { FetchQualityItem, IQualityItem } from './quality/interface'
export { fetchGetVrsAddress, fetchGetVrsProgram, fetchDownLoadVrs } from './record'
export type { RecordProgram } from './record/interface'
export { fetchGetRollCall } from './rollCall'
export type { FetchRollCall, Person } from './rollCall/interface'
/** 获取会议空间基本信息 */
export const fetchGetMeetingSpaceInfo = async (meetingMoid: string) =>
	requestMeeting<FetchMeetingSpaceInfo>({
		url: '/meetingspace/' + meetingMoid,
		method: 'get',
	}).then((res) => (res.success && res.data ? transMeetingInfo(res.data) : undefined))
